package com.yl.service;

import org.apache.dubbo.common.stream.StreamObserver;

/**
 * @author yangl
 */
public interface UserService {

    //UNARY
    String getUser();

    //SERVER_STREAM
    default void sayHelloServerStream(String name, StreamObserver<String> response){

    }

    //CLIENT_STREAM / BI_STREAM
    default StreamObserver<String> sayHelloStream(StreamObserver<String> response){
        return response;
    }
}
